Vue.use(VueRouter)

export default new VueRouter({
    mode: 'history',
    routes: [
      {
        path: '/',
        name: 'home',
        component: () => import('../views/demo/home.vue')
      },
        {
            path: '/demo',
            name: 'demo',
            component: () =>
                import( /* webpackChunkName: 'demo' */ '../views/demo/index.vue'),
            meta: {
                title: 'demo',
              // 是否需要验证投保用户权限
              // customerAuth: false,
              // 是否需要获取第三方信息(当无需登录，且通过微信、支付宝等第三方访问时有效)
              thirdAuth: true,
              // 第三方登陆方式(base、userinfo)
              thirdScopeType: 'userinfo',
            }
        },
    ]
})